/**********************************************************************************************************************
* COPYRIGHT 
* ------------------------------------------------------------------------------------------------------------------- 
* Copyright (c) iSOFT INFRASTRUCTURE SOFTWARE CO., LTD. This software is proprietary to 
* iSOFT INFRASTRUCTURE SOFTWARE CO., LTD., and all rights are reserved by iSOFT INFRASTRUCTURE SOFTWARE CO., LTD. 
* Without the express written permission of the company, no organization or individual may copy, install, trial, 
* distribute, or reverse engineer this software. For terms of use and further details, please refer to the End User 
* License Agreement (EULA) or contact us business@i-soft.com.cn for more assistance. 
* 
* This file contains code from EasyXMen, which is licensed under the LGPL-2.1. However, due to a special exception, 
* you are not required to comply with the provisions of section 6a of LGPL-2.1. Specifically, you may distribute 
* your software, including this file, under terms of your choice, including proprietary licenses, without needing to 
* provide the source code or object code as specified in section 6a. For more details, please refer to the project's 
* LICENSE and EXCEPTION files and the specific exception statement.  
* ------------------------------------------------------------------------------------------------------------------- 
* FILE DESCRIPTION 
* ------------------------------------------------------------------------------------------------------------------- 
*  @MCU                : S32K148 
*  @file               : Os_Cfg.c 
*  @license            : Evaliation 
*  @licenseExpiryDate  : 2025-02-09 23:10:53 
*  @date               : 2025-01-18 17:09:19 
*  @customer           : EasyXMen User 
*  @toolVersion        : 2.0.18 
*********************************************************************************************************************/ 
/*=======[I N C L U D E S]====================================================*/
#include "Os_Cfg.h"
#include "Os_CfgData.h"
#include "Os.h"
#include "Arch_Processor.h"
#include "Os_Internal.h"
/*=======[V E R S I O N   I N F O R M A T I O N]===============================*/
#define     OS_CFG_C_AR_MAJOR_VERSION              19U
#define     OS_CFG_C_AR_MINOR_VERSION              11U
#define     OS_CFG_C_AR_PATCH_VERSION              0U
#define     OS_CFG_C_SW_MAJOR_VERSION              2U
#define     OS_CFG_C_SW_MINOR_VERSION              0U
#define     OS_CFG_C_SW_PATCH_VERSION              0U
/*=======[V E R S I O N  C H E C K]===========================================*/
#if (OS_CFG_C_AR_MAJOR_VERSION != OS_CFG_H_AR_MAJOR_VERSION)
    #error "Os_Cfg.c:Mismatch in Specification Major Version"
#endif
#if (OS_CFG_C_AR_MINOR_VERSION != OS_CFG_H_AR_MINOR_VERSION)
    #error "Os_Cfg.c:Mismatch in Specification Minor Version"
#endif
#if (OS_CFG_C_AR_PATCH_VERSION != OS_CFG_H_AR_PATCH_VERSION)
    #error "Os_Cfg.c:Mismatch in Specification Patch Version"
#endif
#if (OS_CFG_C_SW_MAJOR_VERSION != OS_CFG_H_SW_MAJOR_VERSION)
    #error "Os_Cfg.c:Mismatch in Specification Major Version"
#endif
#if (OS_CFG_C_SW_MINOR_VERSION != OS_CFG_H_SW_MINOR_VERSION)
    #error "Os_Cfg.c:Mismatch in Specification Minor Version"
#endif
/*=======[M A C R O S]========================================================*/
#define  OS_STACK_TOP(stack)    ((Os_StackPtrType)((&(stack)[0]) + (sizeof(stack) / sizeof((stack)[0]))))
#define  OS_STACK_BOTTOM(stack) ((Os_StackPtrType)(stack))
/*=======[I N T E R N A L   D A T A]==========================================*/
/* Ready Queue Manager */
/* ------------------------stack Management---------------------- */

#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_TaskStack_Idle_Core0[128];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
/* -------------------------Task Management---------------------- */                                                            
/* ------------------------OS_Service_Protection beginning ---------------------- */
/* ---------------------task ---------------------- */
/* ------------------------Counter Management--------------------- */
#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_CounterCfgType, OS_CONST) Os_CounterCfgCore0[CFG_COUNTER_MAX_CORE0] =
{    {
        65535,    /*osCounterMaxAllowedValue*/
        1,    /*osCounterMinCycle*/
        1,    /*osCounterTicksPerBase*/
        COUNTER_HARDWARE, /*osCounterType*/
        1000, /*osSecondsPerTick*/
    },
    {
        65535, /*osCounterMaxAllowedValue*/
        1,    /*osCounterMinCycle*/
        1,    /*osCounterTicksPerBase*/
        COUNTER_HARDWARE,  /*osCounterType*/
        1000,  /*osSecondsPerTick*/
    },
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
#define OS_START_SEC_CODE
#include "Os_MemMap.h"
FUNC(void, OS_CODE) Os_ArchSystemTimerCore0(void)
{
    (void)Os_IncrementHardCounter(SystemTimer_Core0);
}
#define OS_STOP_SEC_CODE
#include "Os_MemMap.h"
/* --------------------------Alarm Management---------------------- */
#define OS_START_SEC_CODE
#include "Os_MemMap.h"
static FUNC(void, OS_CODE) AlarmCallback_OsAlarm_5ms(void)
{
    (void)ActivateTask(OsTask_5ms);
}
#define OS_STOP_SEC_CODE
#include "Os_MemMap.h"
#define OS_START_SEC_CODE
#include "Os_MemMap.h"
static FUNC(void, OS_CODE) AlarmCallback_OsAlarm_1ms(void)
{
    (void)ActivateTask(OsTask_1ms);
}
#define OS_STOP_SEC_CODE
#include "Os_MemMap.h"
#define OS_START_SEC_CODE
#include "Os_MemMap.h"
static FUNC(void, OS_CODE) AlarmCallback_OsAlarm_100ms(void)
{
    (void)ActivateTask(OsTask_100ms);
}
#define OS_STOP_SEC_CODE
#include "Os_MemMap.h"
#define OS_START_SEC_CODE
#include "Os_MemMap.h"
static FUNC(void, OS_CODE) AlarmCallback_OsAlarm_10ms(void)
{
    (void)ActivateTask(OsTask_10ms);
}
#define OS_STOP_SEC_CODE
#include "Os_MemMap.h"
#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(Os_AlarmAutostartCfgType, OS_CONST) Os_AlarmAutostartCfgCore0[CFG_AUTO_ALARM_MAX_CORE0] =
{
    {
        100,                          /*osAlarmStartTime*/
        ALARM_AUTOSTART_ABSOLUTE, /*osAlarmAutostartType*/
        100,                      /*osAlarmCycleTime*/
        OSDEFAULTAPPMODE,         /*osAlarmAppMode*/
    },
    {
        1,                            /*osAlarmStartTime*/
        ALARM_AUTOSTART_ABSOLUTE, /*osAlarmAutostartType*/
        1,                        /*osAlarmCycleTime*/
        OSDEFAULTAPPMODE,         /*osAlarmAppMode*/
    },
    {
        5,                            /*osAlarmStartTime*/
        ALARM_AUTOSTART_ABSOLUTE, /*osAlarmAutostartType*/
        5,                        /*osAlarmCycleTime*/
        OSDEFAULTAPPMODE,         /*osAlarmAppMode*/
    },
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_AlarmCfgType, OS_CONST) Os_AlarmCfgCore0[CFG_ALARM_MAX_CORE0] =
{
    {
        Os_GetObjLocalId(SystemTimer_Core0),  /*osAlarmCounter*/
        &Os_AlarmAutostartCfgCore0[0],  /*osAlarmAutostartRef*/
        &AlarmCallback_OsAlarm_100ms,   /*osAlarmCallback*/
    },
    {
        Os_GetObjLocalId(SystemTimer_Core0),  /*osAlarmCounter*/
        &Os_AlarmAutostartCfgCore0[1],  /*osAlarmAutostartRef*/
        &AlarmCallback_OsAlarm_1ms, /*osAlarmCallback*/
    },
    {
        Os_GetObjLocalId(SystemTimer_Core0),  /*osAlarmCounter*/
        &Os_AlarmAutostartCfgCore0[2],  /*osAlarmAutostartRef*/
        &AlarmCallback_OsAlarm_5ms, /*osAlarmCallback*/
    },
    {
        Os_GetObjLocalId(SystemTimer_Core0),  /*osAlarmCounter*/
        NULL_PTR,   /*osAlarmAutostartRef*/
        &AlarmCallback_OsAlarm_10ms,    /*osAlarmCallback*/
    },
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
/* -------------------------Resource Management------------------ */
/* -----------------------ISR Management-------------------------- */
/* -----------------Control block definition--------------------- */
/* -----------------interface definition--------------------- */
#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_AlarmCfgType, AUTOMATIC, OS_CONST) Os_AlarmCfg_Inf[OS_AUTOSAR_CORES] =
{
    Os_AlarmCfgCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_AlarmType, OS_CONST) Os_CfgAlarmMax_Inf[OS_AUTOSAR_CORES] =
{
    CFG_ALARM_MAX_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_CounterCfgType, AUTOMATIC, OS_VAR) Os_CounterCfg_Inf[OS_AUTOSAR_CORES] =
{
    Os_CounterCfgCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_CounterType, OS_CONST) Os_CfgCounterMax_Inf[OS_AUTOSAR_CORES] =
{
    CFG_COUNTER_MAX_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
/* ---------------------task ---------------------- */
/* ++ OsOs Configuration ++ */
#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_SysStack_Core0[8192];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
/* PRQA S 0488++ */ /* MISRA Rule 18.4 */
static CONST(Os_StackType, OS_CONST) Os_SystemStackCore0 =
{
    OS_STACK_TOP(Os_SysStack_Core0), OS_STACK_BOTTOM(Os_SysStack_Core0),
};
/* PRQA S 0488-- */ /* MISRA Rule 18.4 */
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

/* -- OsOs Configuration -- */

/* ++ OsIoc Configuration ++ */
/* ------------------------ CF_1_7_IOC beginning ---------------------- */
/* PRQA S 1840 ++*/ /* MISRA Rule 10.4 */

/* PRQA S 1840 --*/ /* MISRA Rule 10.4 */
/* ------------------------ CF_1_7_IOC end ---------------------- */

/* -- OsIoc Configuration -- */

/* ++ OsIsr Configuration ++ */
#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_SysTimer_Stack_Core0[128];/*system timer*/
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_CAN0_ORed_Stack_Core0[512];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_CAN0_ORed_0_15_MB_Stack_Core0[512];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_CAN0_ORed_16_31_MB_Stack_Core0[512];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_FTM0_Ch0_Ch1_Stack_Core0[512];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(Os_StackType, OS_CONST) Os_ISR2StackCore0[CFG_ISR2_MAX_CORE0] =
{
    /* PRQA S 0488 ++ */ /* MISRA Rule 18.4 */
    {OS_STACK_TOP(Os_SysTimer_Stack_Core0), OS_STACK_BOTTOM(Os_SysTimer_Stack_Core0)},/*system timer*/
    {OS_STACK_TOP(Os_CAN0_ORed_Stack_Core0), OS_STACK_BOTTOM(Os_CAN0_ORed_Stack_Core0)},
    {OS_STACK_TOP(Os_CAN0_ORed_0_15_MB_Stack_Core0), OS_STACK_BOTTOM(Os_CAN0_ORed_0_15_MB_Stack_Core0)},
    {OS_STACK_TOP(Os_CAN0_ORed_16_31_MB_Stack_Core0), OS_STACK_BOTTOM(Os_CAN0_ORed_16_31_MB_Stack_Core0)},
    {OS_STACK_TOP(Os_FTM0_Ch0_Ch1_Stack_Core0), OS_STACK_BOTTOM(Os_FTM0_Ch0_Ch1_Stack_Core0)},
    /* PRQA S 0488 -- */ /* MISRA Rule 18.4 */
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(Os_IsrCfgType, OS_CONST) Os_IsrCfgCore0[CFG_ISR_MAX_CORE0] =
{
    {
        OS_ISR_CATEGORY2,   /*OsIsrCatType*/
        FALSE,  /*OsNestedEnable*/
        OS_SRC_SYSTEM_TIMER_CORE0_ADDR, /*OsIsrSrc*/
        OS_ARCH_INT_CPU0, /*OsIsrSrcType*/
    },

    {
        OS_ISR_CATEGORY2,   /*OsIsrCatType*/
        FALSE,              /*OsNestedEnable*/
        OS_SRC_CAN0_ORed_ADDR,/*OsIsrSrc*/
        OS_ARCH_INT_CPU0, /*OsIsrSrcType*/
    },
    {
        OS_ISR_CATEGORY2,   /*OsIsrCatType*/
        FALSE,              /*OsNestedEnable*/
        OS_SRC_CAN0_ORed_0_15_MB_ADDR,/*OsIsrSrc*/
        OS_ARCH_INT_CPU0, /*OsIsrSrcType*/
    },
    {
        OS_ISR_CATEGORY2,   /*OsIsrCatType*/
        FALSE,              /*OsNestedEnable*/
        OS_SRC_CAN0_ORed_16_31_MB_ADDR,/*OsIsrSrc*/
        OS_ARCH_INT_CPU0, /*OsIsrSrcType*/
    },
    {
        OS_ISR_CATEGORY2,   /*OsIsrCatType*/
        TRUE,               /*OsNestedEnable*/
        OS_SRC_FTM0_Ch0_Ch1_ADDR,/*OsIsrSrc*/
        OS_ARCH_INT_CPU0, /*OsIsrSrcType*/
    },
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_IsrType, OS_CONST) Os_CfgIsrMax_Inf[OS_AUTOSAR_CORES] =
{
    CFG_ISR_MAX_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_IsrType, OS_CONST) Os_CfgIsr2Max_Inf[OS_AUTOSAR_CORES] =
{
    CFG_ISR2_MAX_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_StackType, AUTOMATIC, OS_VAR) Os_Isr2Stack_Inf[OS_AUTOSAR_CORES] =
{
    Os_ISR2StackCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_IsrCfgType, AUTOMATIC, OS_VAR) Os_IsrCfg_Inf[OS_AUTOSAR_CORES] =
{
    Os_IsrCfgCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_IPLType, OS_CONST) Os_CfgIsr2TplMax_Inf[OS_AUTOSAR_CORES] =
{
    CFG_ISR2_IPL_MAX_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

/* -- OsIsr Configuration -- */

/* ++ OsResource Configuration ++ */
#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(Os_ResourceCfgType, OS_CONST) Os_ResourceCfgCore0[CFG_STD_RESOURCE_MAX_CORE0] =
{

    {
     4U,    /*ceiling*/
     OCCUPIED_BY_TASK,  /*resourceOccupyType*/
     0U,/*rsv1*/
     },
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_ResourceType, OS_CONST) Os_ResScheduler_Inf[OS_AUTOSAR_CORES] =
{
    RES_SCHEDULER_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_ResourceCfgType, AUTOMATIC, OS_VAR) Os_ResourceCfg_Inf[OS_AUTOSAR_CORES] =
{
    Os_ResourceCfgCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_ResourceType, OS_CONST) Os_CfgResourceMax_Inf[OS_AUTOSAR_CORES] =
{
    CFG_RESOURCE_MAX_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(Os_ResourceType, OS_CONST) Os_CfgStdResourceMax_Inf[OS_AUTOSAR_CORES] =
{
    CFG_STD_RESOURCE_MAX_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

/* -- OsResource Configuration -- */

/* ++ OsTask Configuration ++ */
#define OS_START_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
static VAR(Os_TaskType, OS_VAR) Os_ActivateQueue_Core0_0[1];
#define OS_STOP_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
#define OS_START_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
static VAR(Os_TaskType, OS_VAR) Os_ActivateQueue_Core0_1[3];
#define OS_STOP_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
#define OS_START_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
static VAR(Os_TaskType, OS_VAR) Os_ActivateQueue_Core0_2[2];
#define OS_STOP_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
#define OS_START_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
static VAR(Os_TaskType, OS_VAR) Os_ActivateQueue_Core0_3[2];
#define OS_STOP_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
#define OS_START_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
static VAR(Os_TaskType, OS_VAR) Os_ActivateQueue_Core0_4[3];
#define OS_STOP_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"
static VAR(Os_ReadyQueueType, OS_VAR)  Os_ReadyQueueMark_Core0[CFG_PRIORITY_MAX_CORE0];
#define OS_STOP_SEC_VAR_CLEARED_CORE0_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONSTP2VAR(Os_TaskType, OS_CONST, OS_VAR) Os_ReadyQueue_Core0[CFG_PRIORITY_MAX_CORE0] =
{
    Os_ActivateQueue_Core0_0,
    Os_ActivateQueue_Core0_1,
    Os_ActivateQueue_Core0_2,
    Os_ActivateQueue_Core0_3,
    Os_ActivateQueue_Core0_4,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint32, OS_CONST) Os_ActivateQueueSize_Core0[CFG_PRIORITY_MAX_CORE0] =
{
    1,
    3,
    2,
    2,
    3,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(Os_PriorityType, OS_CONST) Os_PrioGroupCore0[CFG_PRIORITY_MAX_CORE0] =
{
    0U,
    0U,
    0U,
    0U,
    0U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(Os_PriorityType, OS_CONST) Os_PrioMaskCore0[CFG_PRIORITY_MAX_CORE0] =
{
    0x0001,
    0x0002,
    0x0004,
    0x0008,
    0x0010,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_OsTask_100ms_Stack[4096];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"

#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_OsTask_10ms_Stack[512];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"

#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_OsTask_1ms_Stack[512];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"

#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_OsTask_5ms_Stack[8192];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"

#define OS_START_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"
static VAR(Os_StackDataType, OS_VAR) Os_OsTask_Init_Stack[512];
#define OS_STOP_SEC_VAR_STACK_CORE0
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(Os_StackType, OS_CONST) Os_TaskStackCore0[CFG_TASK_MAX_CORE0] =
{
    /* PRQA S 0488 ++ */ /* MISRA Rule 18.4 */ 
    {OS_STACK_TOP(Os_OsTask_100ms_Stack), OS_STACK_BOTTOM(Os_OsTask_100ms_Stack)},
    {OS_STACK_TOP(Os_OsTask_10ms_Stack), OS_STACK_BOTTOM(Os_OsTask_10ms_Stack)},
    {OS_STACK_TOP(Os_OsTask_1ms_Stack), OS_STACK_BOTTOM(Os_OsTask_1ms_Stack)},
    {OS_STACK_TOP(Os_OsTask_5ms_Stack), OS_STACK_BOTTOM(Os_OsTask_5ms_Stack)},
    {OS_STACK_TOP(Os_OsTask_Init_Stack), OS_STACK_BOTTOM(Os_OsTask_Init_Stack)},
    {OS_STACK_TOP(Os_TaskStack_Idle_Core0), OS_STACK_BOTTOM(Os_TaskStack_Idle_Core0)},
    /* PRQA S 0488 -- */ /* MISRA Rule 18.4 */
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(Os_TaskCfgType, OS_CONST) Os_TaskCfgCore0[CFG_TASK_MAX_CORE0] =
{
    {
        &Os_TaskEntry_OsTask_100ms,     /*osTaskEntry*/
        Os_GetObjLocalId(OsTask_100ms),   /*osTaskStackId*/
        1,                              /*osTaskActivation*/
        1,                              /*osTaskPriority*/
        OS_PREEMPTIVE_FULL,             /*osTaskSchedule*/
        0U,                             /*osRsv1*/
        OSDEFAULTAPPMODE,               /*osTaskAutoStartMode*/
    },
    {
        &Os_TaskEntry_OsTask_10ms,      /*osTaskEntry*/
        Os_GetObjLocalId(OsTask_10ms),   /*osTaskStackId*/
        1,                              /*osTaskActivation*/
        2,                              /*osTaskPriority*/
        OS_PREEMPTIVE_FULL,             /*osTaskSchedule*/
        0U,                             /*osRsv1*/
        OSDEFAULTAPPMODE,               /*osTaskAutoStartMode*/
    },
    {
        &Os_TaskEntry_OsTask_1ms,       /*osTaskEntry*/
        Os_GetObjLocalId(OsTask_1ms),   /*osTaskStackId*/
        1,                              /*osTaskActivation*/
        4,                              /*osTaskPriority*/
        OS_PREEMPTIVE_FULL,             /*osTaskSchedule*/
        0U,                             /*osRsv1*/
        OSDEFAULTAPPMODE,               /*osTaskAutoStartMode*/
    },
    {
        &Os_TaskEntry_OsTask_5ms,       /*osTaskEntry*/
        Os_GetObjLocalId(OsTask_5ms),   /*osTaskStackId*/
        1,                              /*osTaskActivation*/
        3,                              /*osTaskPriority*/
        OS_PREEMPTIVE_FULL,             /*osTaskSchedule*/
        0U,                             /*osRsv1*/
        OS_NULL_APPMODE,                /*osTaskAutoStartMode*/
    },
    {
        &Os_TaskEntry_OsTask_Init,      /*osTaskEntry*/
        Os_GetObjLocalId(OsTask_Init),   /*osTaskStackId*/
        1,                              /*osTaskActivation*/
        1,                              /*osTaskPriority*/
        OS_PREEMPTIVE_NON,              /*osTaskSchedule*/
        0U,                             /*osRsv1*/
        OS_NULL_APPMODE,                /*osTaskAutoStartMode*/
    },
    {
        &Os_TaskEntry_IdleCore0,            /*osTaskEntry*/
        Os_GetObjLocalId(OS_TASK_IDLE_CORE0), /*osTaskStackId*/
        1,                                        /*osTaskActivation*/
        0,                                        /*osTaskPriority*/
        OS_PREEMPTIVE_FULL,                       /*osTaskSchedule*/
        0U,                                       /*osRsv1*/
        OS_ALL_APPMODE,                           /*osTaskAutoStartMode*/

    },
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(uint32, AUTOMATIC, OS_VAR) Os_ActivateQueueSize_Inf[OS_AUTOSAR_CORES] =
{
    Os_ActivateQueueSize_Core0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_TaskRefType, AUTOMATIC, OS_VAR) Os_ReadyQueue_Inf[OS_AUTOSAR_CORES] =
{
    Os_ReadyQueue_Core0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_PriorityType, AUTOMATIC, OS_VAR) Os_PrioGroup_Inf[OS_AUTOSAR_CORES] =
{
    Os_PrioGroupCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_PriorityType, AUTOMATIC, OS_VAR) Os_PrioMask_Inf[OS_AUTOSAR_CORES] =
{
    Os_PrioMaskCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(uint16, OS_CONST) Os_CfgPriorityMax_Inf[OS_AUTOSAR_CORES] =
{
    CFG_PRIORITY_MAX_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2VAR(Os_ReadyQueueType, AUTOMATIC, OS_VAR) Os_ReadyQueueMark_Inf[OS_AUTOSAR_CORES] = /* PRQA S 3432 */ /* MISRA Rule 20.7 */
{
    Os_ReadyQueueMark_Core0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(uint8, OS_CONST) Os_CfgPriorityGroup_Inf[OS_AUTOSAR_CORES] =
{
    CFG_PRIORITY_GROUP_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_StackType, AUTOMATIC, OS_VAR) Os_SystemStack_Inf[OS_AUTOSAR_CORES] =
{
    &Os_SystemStackCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_TaskCfgType, AUTOMATIC, OS_CONST) Os_TaskCfg_Inf[OS_AUTOSAR_CORES] =
{
    Os_TaskCfgCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(Os_StackType, AUTOMATIC, OS_CONST) Os_TaskStack_Inf[OS_AUTOSAR_CORES] =
{
    Os_TaskStackCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(uint16, OS_CONST) Os_CfgTaskMax_Inf[OS_AUTOSAR_CORES] =
{
    CFG_TASK_MAX_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONST(uint16, OS_CONST) Os_TASK_IDLE_Inf[OS_AUTOSAR_CORES] =
{
    OS_TASK_IDLE_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

/* -- OsTask Configuration -- */

/* ++ ServiceProtection Configuration ++ */
#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_OsTask_100ms[1] =
{
    0x1U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_OsTask_10ms[1] =
{
    0x1U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_OsTask_1ms[1] =
{
    0x1U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_OsTask_5ms[1] =
{
    0x1U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_OsTask_Init[1] =
{
    0x1U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_OS_TASK_IDLE_CORE0[1] =
{
    0x0000U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONSTP2CONST(uint16, OS_VAR, OS_CONST) Os_TaskResourceAccessMaskCore0[CFG_TASK_MAX_CORE0] =
{
    Os_ResourceAccessMask_OsTask_100ms,
    Os_ResourceAccessMask_OsTask_10ms,
    Os_ResourceAccessMask_OsTask_1ms,
    Os_ResourceAccessMask_OsTask_5ms,
    Os_ResourceAccessMask_OsTask_Init,
    Os_ResourceAccessMask_OS_TASK_IDLE_CORE0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(uint16* const, AUTOMATIC, OS_VAR)Os_TaskResourceAccessMask_Inf[OS_AUTOSAR_CORES] =
{
    Os_TaskResourceAccessMaskCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_ISR_STM0_SR0[1] =
{
    0x1U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_CAN0_ORed[1] =
{

    0x0U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_CAN0_ORed_0_15_MB[1] =
{

    0x0U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_CAN0_ORed_16_31_MB[1] =
{

    0x0U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONST(uint16, OS_CONST) Os_ResourceAccessMask_FTM0_Ch0_Ch1[1] =
{

    0x0U,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
static CONSTP2CONST(uint16, OS_VAR, OS_CONST) Os_IsrResourceAccessMaskCore0[CFG_ISR2_MAX_CORE0] =
{
    Os_ResourceAccessMask_ISR_STM0_SR0,
    Os_ResourceAccessMask_CAN0_ORed,
    Os_ResourceAccessMask_CAN0_ORed_0_15_MB,
    Os_ResourceAccessMask_CAN0_ORed_16_31_MB,
    Os_ResourceAccessMask_FTM0_Ch0_Ch1,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

#define OS_START_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"
CONSTP2CONST(uint16* const, AUTOMATIC, OS_VAR)Os_IsrResourceAccessMask_Inf[OS_AUTOSAR_CORES] =
{
    Os_IsrResourceAccessMaskCore0,
};
#define OS_STOP_SEC_CONST_UNSPECIFIED
#include "Os_MemMap.h"

/* -- ServiceProtection Configuration -- */
/*=======[E N D   O F   F I L E]==============================================*/

